//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "MVTTraining\fn_resetTargets.sqf"
#include <core_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

if (!isServer) exitWith { TRACE("Not on server"); };
private ["_target","_up"];
TRACE_1("Targets",count GVAR(TARGETS));
{
	_target = _x;
	_up = _target getVariable ["IsUp",true];
	if (_up) then {
		_target animate["terc", 1];
		_target setVariable["IsUp",false];
		_target setVariable["UpTime",0];
	};
} foreach GVAR(TARGETS);

TRACE("End");
TMFPROFILERSTOP;
